home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / CDTools / Viewers / Apdf / doc.orig / xpdf.cat < prev   
Text File  |  1999-07-14  |  12KB  |  463 lines

  1.  
  2.  
  3.  
  4. xpdf(1)                                                   xpdf(1)
  5.  
  6.  
  7. NAME
  8.        xpdf  -  Portable  Document Format (PDF) file viewer for X
  9.        (version 0.80)
  10.  
  11. SYNOPSIS
  12.        xpdf [options] [PDF-file [page]]
  13.  
  14. DESCRIPTION
  15.        Xpdf is a viewer for Portable Document Format (PDF) files.
  16.        (These  are  also  sometimes  also called 'Acrobat' files,
  17.        from the name of Adobe's PDF software.)  Xpdf  runs  under
  18.        the X Window System on UNIX, VMS, and OS/2.
  19.  
  20.        To run xpdf, simply type:
  21.  
  22.               xpdf file.pdf
  23.  
  24.        where  file.pdf  is  your  PDF file.  The file name can be
  25.        followed by a number specifying the page which  should  be
  26.        displayed first, e.g.:
  27.  
  28.               xpdf file.pdf 18
  29.  
  30.        You can also start xpdf without opening any files:
  31.  
  32.               xpdf
  33.  
  34. OPTIONS
  35.        X  resources are listed in square brackets with the corre-
  36.        sponding option.
  37.  
  38.        -err   Send error messages to /dev/tty instead  of  stderr
  39.               (useful  if  xpdf  is started from another applica-
  40.               tion, e.g., netscape which  otherwise  pops  up  an
  41.               annoying little window for every error).
  42.  
  43.        -z number
  44.               Set  the initial zoom factor (-5 .. 5).  [xpdf.ini-
  45.               tialZoom]
  46.  
  47.        -g geometry
  48.               Set the initial  window  geometry.   (-geometry  is
  49.               equivalent.)  [xpdf.geometry]
  50.  
  51.        -remote name
  52.               Start/contact  xpdf  remote  server  with specified
  53.               name (see the REMOTE SERVER MODE section below).
  54.  
  55.        -raise Raise  xpdf  remote  server  window  (with  -remote
  56.               only).
  57.  
  58.        -quit  Kill xpdf remote server (with -remote only).
  59.  
  60.        -cmap  Install  a  private  colormap.   This is ignored on
  61.  
  62.  
  63.  
  64.                            27 Nov 1998                          1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. xpdf(1)                                                   xpdf(1)
  71.  
  72.  
  73.               TrueColor visuals.  [xpdf.installCmap]
  74.  
  75.        -rgb number
  76.               Set the size of largest RGB cube xpdf will  try  to
  77.               allocate.  The default is 5 (for a 5x5x5 cube); set
  78.               to  a  smaller  number  to  conserve  color   table
  79.               entries.   This  is  ignored with private colormaps
  80.               and on TrueColor visuals.
  81.  
  82.        -papercolor color
  83.               Set the "paper color", i.e., the background of  the
  84.               page display.  This will not work too well with PDF
  85.               files that do things like filling in  white  behind
  86.               the text.  [xpdf.paperColor]
  87.  
  88.        -ps PS-file
  89.               Set  the  default  file name for PostScript output.
  90.               This can also be of the form '|command' to pipe the
  91.               PostScript through a command.  [xpdf.psFile]
  92.  
  93.        -paperw size
  94.               Set  the  paper  width,  in points.  [xpdf.psPaper-
  95.               Width]
  96.  
  97.        -paperh size
  98.               Set the paper height,  in  points.   [xpdf.psPaper-
  99.               Height]
  100.  
  101.        -level1
  102.               Generate   Level   1   PostScript.   The  resulting
  103.               PostScript files will be significantly  larger  (if
  104.               they  contain  images),  but  will print on Level 1
  105.               printers.  This also converts all images  to  black
  106.               and white.  [xpdf.psLevel1]
  107.  
  108.        -cmd   Print  commands  as  they're  executed  (useful for
  109.               debugging).
  110.  
  111.        -h     Print usage information.  (-help is equivalent.)
  112.  
  113.        Several other standard X options and resources  will  work
  114.        as expected:
  115.  
  116.        -display display
  117.               [xpdf.display]
  118.  
  119.        -fg color
  120.               (-foreground is equivalent.)  [xpdf.foreground]
  121.  
  122.        -bg color
  123.               (-background is equivalent.)  [xpdf.background]
  124.  
  125.        -font font
  126.               (-fn is equivalent.)  [xpdf.font]
  127.  
  128.  
  129.  
  130.                            27 Nov 1998                          2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. xpdf(1)                                                   xpdf(1)
  137.  
  138.  
  139.        The  color and font options only affect the user interface
  140.        elements, not the PDF display (the 'paper').
  141.  
  142.        The following X resources do not have command line  option
  143.        equivalents:
  144.  
  145.        xpdf.urlCommand
  146.               Set  the  command  executed when you click on a URL
  147.               link.  See  the  WEB  BROWSERS  section  below  for
  148.               details.
  149.  
  150. CONTROLS
  151.    On-screen controls, at the bottom of the xpdf window
  152.        left/right arrow buttons
  153.               Move to the previous/next page.
  154.  
  155.        double left/right arrow buttons
  156.               Move backward or forward by ten pages.
  157.  
  158.        'Page' entry box
  159.               Move  to  a specific page number.  Click in the box
  160.               to activate it, type  the  page  number,  then  hit
  161.               return.
  162.  
  163.        magnifying glass buttons
  164.               Increase and decrease the resolution, i.e., zoom in
  165.               and zoom out.
  166.  
  167.        binoculars button
  168.               Find a text string.
  169.  
  170.        print button
  171.               Bring up a dialog for generating a PostScript file.
  172.               The  dialog  has  options  to  set  the pages to be
  173.               printed and the PostScript  file  name.   The  file
  174.               name  can  be  '-' for stdout or '|command' to pipe
  175.               the PostScript through a command, e.g., '|lpr'.
  176.  
  177.        '?' button
  178.               Bring up the 'about xpdf' window.
  179.  
  180.        link info
  181.               The space between the '?'  and  'Quit'  buttons  is
  182.               used to show the URL or external file name when the
  183.               mouse is over a link.
  184.  
  185.        'Quit' button
  186.               Quit xpdf.
  187.  
  188.  
  189.    Menu
  190.        Pressing the right mouse button will  post  a  popup  menu
  191.        with the following commands:
  192.  
  193.  
  194.  
  195.  
  196.                            27 Nov 1998                          3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. xpdf(1)                                                   xpdf(1)
  203.  
  204.  
  205.        Open...
  206.               Open a new PDF file via a file requester.
  207.  
  208.        Save PDF...
  209.               Save the current file via a file requester.
  210.  
  211.        Rotate left
  212.               Rotate the page 90 degrees counterclockwise.
  213.  
  214.        Rotate right
  215.               Rotate  the  page  90  degrees  clockwise.  The two
  216.               rotate commands  are  intended  primarily  for  PDF
  217.               files  where the rotation isn't correctly specified
  218.               in the file, but they're  also  useful  if  your  X
  219.               server doesn't support font rotation.
  220.  
  221.        Quit   Quit xpdf.
  222.  
  223.  
  224.    Text selection
  225.        Dragging  the  mouse  with  the left button held down will
  226.        highlight an arbitrary rectangle.  Any  text  inside  this
  227.        rectangle will be copied to the X selection buffer.
  228.  
  229.  
  230.    Links
  231.        Clicking  on  a hyperlink will jump to the link's destina-
  232.        tion.  A link to another PDF document will make xpdf  load
  233.        that  document.   A 'launch' link to an executable program
  234.        will display a dialog, and if you click 'ok', execute  the
  235.        program.   URL links call an external command (see the WEB
  236.        BROWSERS section below).
  237.  
  238.  
  239.    Panning
  240.        Dragging the mouse with the middle button held  down  pans
  241.        the window.
  242.  
  243.  
  244.    Key bindings
  245.        o      Open a new PDF file via a file requester.
  246.  
  247.        f      Find a text string.
  248.  
  249.        n      Move to the next page.
  250.  
  251.        p      Move to the previous page.
  252.  
  253.        <Space> or <PageDown> or <Next>
  254.               Scroll down on the current page; if already at bot-
  255.               tom, move to next page.
  256.  
  257.        <Backspace> or <Delete> or <PageUp> or <Previous>
  258.               Scroll up on the current page; if already  at  top,
  259.  
  260.  
  261.  
  262.                            27 Nov 1998                          4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. xpdf(1)                                                   xpdf(1)
  269.  
  270.  
  271.               move to previous page.
  272.  
  273.        <Home> Scroll to top of current page.
  274.  
  275.        <End>  Scroll to bottom of current page.
  276.  
  277.        arrows Scroll the current page.
  278.  
  279.        control-L
  280.               Redraw the current page.
  281.  
  282.        q      Quit xpdf.
  283.  
  284. WEB BROWSERS
  285.        If  you  want  to  run xpdf automatically from netscape or
  286.        mosaic (and probably other browsers) when you click  on  a
  287.        link to a PDF file, you need to edit (or create) the files
  288.        .mime.types and  .mailcap  in  your  home  directory.   In
  289.        .mime.types add the line:
  290.  
  291.               application/pdf pdf
  292.  
  293.        In .mailcap add the lines:
  294.  
  295.               # Use xpdf to view PDF files.
  296.               application/pdf; xpdf -err %s
  297.  
  298.        Make sure that xpdf is on your executable search path.
  299.  
  300.        When you click on a URL link in a PDF file, xpdf will exe-
  301.        cute  the  command  specified   by   the   xpdf.urlCommand
  302.        resource,  replacing  an  occurrence of '%s' with the URL.
  303.        For example, to call  netscape  with  the  URL,  use  this
  304.        resource setting:
  305.  
  306.               xpdf.urlCommand: netscape -remote 'openURL(%s)'
  307.  
  308. REMOTE SERVER MODE
  309.        Xpdf  can be started in remote server mode by specifying a
  310.        server name (in addition to the file name  and  page  num-
  311.        ber).  For example:
  312.  
  313.               xpdf -remote myServer file.pdf
  314.  
  315.        If  there is currently no xpdf running in server mode with
  316.        the name 'myServer', a new xpdf window will be opened.  If
  317.        another command:
  318.  
  319.               xpdf -remote myServer another.pdf 9
  320.  
  321.        is  issued,  a  new  copy  of  xpdf  will  not be started.
  322.        Instead, the first xpdf (the server) will load another.pdf
  323.        and display page nine.  If the file name is the same:
  324.  
  325.  
  326.  
  327.  
  328.                            27 Nov 1998                          5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. xpdf(1)                                                   xpdf(1)
  335.  
  336.  
  337.               xpdf -remote myServer another.pdf 4
  338.  
  339.        the xpdf server will simply display the specified page.
  340.  
  341.        The -raise option tells the server to raise its window; it
  342.        can be specified with or without a file name and page num-
  343.        ber.
  344.  
  345.        The  -quit option tells the server to close its window and
  346.        exit.
  347.  
  348. CONFIGURATION FILE
  349.        Xpdf will read a file called .xpdfrc from your home direc-
  350.        tory  (if  it exists).  This file can contain two types of
  351.        entries.
  352.  
  353.        fontpath directory
  354.               Look for Type 1 fonts in directory.  Xpdf uses this
  355.               only  to  get  the font encoding.  For display, the
  356.               font must also be mapped with a fontmap entry.
  357.  
  358.        fontmap PDF-font X-font
  359.               Map PDF-font (as referenced in a PDF  file)  to  X-
  360.               font,  which should be a standard X font descriptor
  361.               with '%s' in the pixel size position.
  362.  
  363.        For example, use:
  364.  
  365.               fontmap       TimesCE-Roman        -*-times-medium-
  366.               r-*-*-%s-*-*-*-*-*-iso8859-2
  367.  
  368.        to  map  the  Central  European  (Latin-2)  version of the
  369.        Times-Roman font.  This assumes that you've installed  the
  370.        appropriate  X fonts (see mkfontdir(1)).  Xpdf knows about
  371.        the ISO8859-2 encoding, so you don't need a fontpath entry
  372.        for these fonts.  To use the Bakoma Type 1 fonts, do this:
  373.  
  374.               fontpath /home/derekn/fonts/bakoma
  375.               fontmap      cmb10      -bakoma-cmb10-medium-r-nor-
  376.               mal--%s-*-*-*-p-*-adobe-fontspecific
  377.               fontmap    cmbsy10    -bakoma-cmbsy10-medium-r-nor-
  378.               mal--%s-*-*-*-p-*-adobe-fontspecific
  379.               etc...
  380.  
  381.        This assumes that the Type 1 font files are  available  in
  382.        the directory /home/derekn/fonts/bakoma.
  383.  
  384. BUGS
  385.        This  is  a  beta  release  of xpdf, and there are still a
  386.        bunch of PDF features which I have yet to implement.
  387.  
  388.        At this point, the biggest problem is that embedded  fonts
  389.        are not handled properly.
  390.  
  391.  
  392.  
  393.  
  394.                            27 Nov 1998                          6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. xpdf(1)                                                   xpdf(1)
  401.  
  402.  
  403. AUTHOR
  404.        The   xpdf   software   and  documentation  are  copyright
  405.        1996-1998 Derek B. Noonburg (derekn@foolabs.com).
  406.  
  407. SEE ALSO
  408.        pdftops(1), pdftotext(1), pdfinfo(1), pdftopbm(1),  pdfim-
  409.        ages(1)
  410.        http://www.foolabs.com/xpdf/
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.                            27 Nov 1998                          7
  461.  
  462.  
  463.